package com.by.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("li_member")
@ApiModel("会员基础信息表")
public class Member {

    @TableId(value = "id", type = IdType.AUTO)
    Long id;

    @TableField(value = "create_by")
    @ApiModelProperty("创建人")
    String createBy;

    @TableField(value = "create_time",update = "now()")
    @ApiModelProperty("创建时间")
    Date CreateTime;

    @TableLogic
    @TableField(value = "delete_flag")
    @ApiModelProperty("删除标志 true/false 删除/未删除")
    int deleteFlag;

    @TableField(value = "update_by")
    @ApiModelProperty("更新人")
    String updateBy;

    @TableField(value = "update_time",update = "now()")
    @ApiModelProperty("更新时间")
    Date updateTime;

    @ApiModelProperty("会员生日")
    String birthday;

    @ApiModelProperty("会员状态")
    int disabled;

    @ApiModelProperty("会员头像")
    String face;

    @TableField(value = "have_store")
    @ApiModelProperty("是否开通店铺")
    int haveStore;

    @ApiModelProperty("手机号码")
    String mobile;

    @TableField(value = "nick_name")
    @ApiModelProperty("会员昵称")
    String nickName;

    @ApiModelProperty("会员密码")
    String password;

    @ApiModelProperty("积分")
    int point;

    @ApiModelProperty("性别")
    int sex;

    @TableField(value = "store_id")
    @ApiModelProperty("店铺id")
    int storeId;

    @ApiModelProperty("会员用户名")
    String username;

    @ApiModelProperty("会员地址")
    String region;

    @TableField(value = "region_id")
    @ApiModelProperty("会员地址Id")
    String regionId;

    @TableField(value = "client_enum")
    @ApiModelProperty("客户端")
    String clientEnum;

    @TableField(value = "last_login_date",update = "now()",exist = false)
    @ApiModelProperty("最后登录时间")
    Date lastLoginTime;


}
